package com.iot.iotplus.controller;

import com.iot.iotplus.base.Result;
import com.iot.iotplus.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/area")
public class AreaController {
    @Autowired
    private AreaService areaService;
    @GetMapping("/list")
    public Result<?> list() {
        return areaService.getAreaList();
    }
}
